package com.bytezreo.template;

/**
 * 
 * @Description
 * @author Bytezero·zhenglei!        Email:420498246@qq.com
 * @version
 * @date 下午2:23:00
 * @
 *
 */
public abstract class Employee {
		private String name;
		private int number;
		private MyDate birthady;
		
	
		public Employee(String name, int number, MyDate birthady) {
			super();
			this.name = name;
			this.number = number;
			this.birthady = birthady;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public int getNumber() {
			return number;
		}

		public void setNumber(int number) {
			this.number = number;
		}

		public MyDate getBirthady() {
			return birthady;
		}

		public void setBirthady(MyDate birthady) {
			this.birthady = birthady;
		}

		public abstract double earnings();

		@Override
		public String toString() {
			return "name=" + name + ", number=" + number + ", birthady=" + birthady.toDateString();
		}
		
		
		
}
